// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) KALEIDOS INC

@import "refactor/common-refactor.scss";

.element-set {
  margin: 0;
}

.title-spacing-layout-element {
  margin: 0 0 $s-4 0;
}

.title-spacing-empty {
  padding-left: $s-2;
}

.flex-element-menu {
  @include flexColumn;
  gap: $s-12;
  margin-block-end: $s-8;
}

.behaviour-menu {
  display: flex;
  gap: $s-4;
}

.horizontal-behaviour {
  &.one-element {
    width: $s-28;
  }
  &.two-element {
    width: $s-60;
  }
  &.three-element {
    width: $s-92;
  }
}

.vertical-behaviour {
  .rotated {
    transform: rotate(90deg);
  }
  &.one-element {
    width: $s-28;
  }
  &.two-element {
    width: $s-60;
  }
  &.three-element {
    width: $s-92;
  }
}

.z-index-wrapper {
  @extend .input-element;
  @include bodySmallTypography;
  width: $s-60;
}

.row {
  display: flex;
  gap: $s-4;
}

.position-options {
  width: $s-188;
}

.margin-row {
  display: flex;
  align-items: flex-start;
  gap: $s-4;
}

.margin-mode {
  @extend .button-tertiary;
  height: $s-32;
  width: $s-28;
  svg {
    @extend .button-icon;
  }
  &.selected {
    @extend .button-icon-selected;
  }
}

.margin-simple {
  display: flex;
  gap: $s-4;
  .vertical-margin,
  .horizontal-margin {
    @extend .input-element;
    @include bodySmallTypography;
    width: $s-108;
  }
}

.margin-multiple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: $s-4;
}

.top-margin,
.bottom-margin,
.left-margin,
.right-margin {
  @extend .input-element;
  @include bodySmallTypography;
  width: $s-108;
}

.advanced-options {
  @include flexColumn;
}

.horizontal-fill,
.vertical-fill {
  display: flex;
  gap: $s-4;
}

.layout-item-min-w,
.layout-item-min-h,
.layout-item-max-w,
.layout-item-max-h {
  @extend .input-element;
  @include bodySmallTypography;
  width: $s-108;
  .icon-text {
    justify-content: flex-start;
    width: $s-80;
    padding-top: $s-2;
  }
}
